package org.microservice.common.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import org.microservice.common.base.AbstractAuditingEntity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: 齐丹枫
 * Date: 2018/6/20
 * Time: 15:06
 * To change this template use File | Settings | File Templates.
 * Description:
 */
@Data
@TableName("sys_user")
public class UserVo extends AbstractAuditingEntity implements Serializable{
    private static final long serialVersionUID = 1L;

    private Integer id;

    private String username;

    private String displayName;

    private String phone;

    private int departmentId;

    private String password;


    private String email;


    private String imageUrl;


    private boolean disabled;

    @TableField(exist=false)
    private List<RoleVo> roles = new ArrayList<>();

    @TableField(exist=false)
    private List<Integer> roleIds = new ArrayList<>();

    @TableField(exist=false)
    private String departmentName;
    @TableField(exist=false)
    private String departmentCode;

    @TableField("post_id")
    private int postId;
    @TableField(exist = false)
    private String postName;
    @TableField(exist = false)
    private  String postCode;

    private String extraOne;
    private String extraTwo;



}
